import req from '@/utils/req'
/*默认主页***********************************************************************************************************************/
//设置默认首页
export function getURLList(O) {
  return req.get('/homepage/update?userHomePageUrl='+ O)
}
//重置密码
export function changePassword(o) {
  return req.post('/management/security/user/changePassword?password='+ o)
}
//重置密码
export function resetPassword(ids) {
  return req.post('/management/security/user/resetPassword', {ids})
}
//修改密码
export function getRoleModules() {
  return req.get('/management/security/role/roleModule')
}
export function GetMenu() {
  console.log('666666');
  /*return req.post('/auth/auth/login', {
   //return req.post('/auth/login', {
   loginName: username,
   //username: username,
   password: password
   })*/
}
//接口全部弄好后 可删
export function getRoleList(obj) {
  return req.get('/role/list', obj)
}
// 创建角色
export function createRole(obj) {
  return req.postPayload('/auth/role/create', obj)
}
export function searchRoleRow(id) {
  return req.get('/auth/role/' + id)
}
//更新角色
export function updateRole(obj) {
  return req.postPayload('/auth/role/update', obj)
}
//接口全部弄好后 可删
